//
//  UTInterfaceOrientationMask.swift
//  iPhoneUTests
//
//  Created by Toj on 7/19/23.
//

import XCTest

class UTInterfaceOrientationMask: XCTestCase {

    override func setUpWithError() throws {
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }

    override func tearDownWithError() throws {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
    }

    func testExample() throws {
        print("-->UTests: start \n")
        testDeviceInfo()
        print("-->UTests: end \n")
    }

    func testPerformanceExample() throws {
        // This is an example of a performance test case.
        self.measure {
            // Put the code you want to measure the time of here.
        }
    }
}

extension UTInterfaceOrientationMask {
    
    private func testDeviceInfo() {
        
        print("-->toj: UIInterfaceOrientationMask: ")
        print("-->toj: \(UIInterfaceOrientationMask.portrait)")
        print("-->toj: \(UIInterfaceOrientationMask.landscapeLeft)")
        print("-->toj: \(UIInterfaceOrientationMask.landscapeRight)")
        print("-->toj: \(UIInterfaceOrientationMask.portraitUpsideDown)")
        print("-->toj: \(UIInterfaceOrientationMask.landscape)")
        print("-->toj: \(UIInterfaceOrientationMask.all)")
        print("-->toj: \(UIInterfaceOrientationMask.allButUpsideDown)")
    }
}
